<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>员工管理</title>
</head>
<script src="js/jquery-3.7.1.js"></script>
<script src="js/employee.js"></script>
<body>
<!--第一个/表示回到根目录-->

<div id="div1">
    <div><lable>姓名：</lable><input type="text" name="name" value=""></div>
    <div><lable>年龄：</lable><input type="number" name="age"></div>
    <div><lable>工资：</lable><input type="number" name="salary"></div>
    <div><button onclick="add()">确认</button></div>
</div>
<style>
    table,tr,td,th{
        border: black 1px solid;
        border-collapse: collapse;
    }
    table{
        width: 500px;
        text-align: center;
    }

</style>
<div style="margin-top: 20px;">
    <table>
        <thead>
        <tr>
            <th>序号</th><th>姓名</th><th>年龄</th><th>工资</th><th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr><td>1</td><td contenteditable="true">1</td><td contenteditable="true">2</td><td>2</td><td><a href="javascript:void(0);" onclick="edit(this)">编辑</a><a style="margin-left: 30px;" href="javascript:void(0);" onclick="del(this)"> 删除</a></td></tr>
        </tbody>
    </table>
</div>

<div id="msgDIV" style="position: absolute;top: 45%;left: 45%;display: none;"></div>
</body>
</html>